package com.atguigu.gmallsuger.service;

import com.atguigu.gmallsuger.bean.C3Stats;
import com.atguigu.gmallsuger.bean.SpuStats;
import com.atguigu.gmallsuger.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl implements ProductService{
    
    @Autowired
    ProductMapper product;
    @Override
    public BigDecimal gmv(int date) {
        return product.gmv(date);
    }
    
    @Override
    public List<Map<String, Object>> getGMVByTmName(int date) {
        return product.getGMVByTmName(date);
    }
    
    @Override
    public List<C3Stats> getGMVByC3Name(int date) {
        return product.getGMVByC3Name(date);
    }
    
    @Override
    public List<SpuStats> getGMVBySpuName(int date) {
        return product.getGMVBySpuName(date);
    }
    
}
